package com.example.chess;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class ChessApplication {

    // 添加一个 ConfigurableApplicationContext 对象
    public static ConfigurableApplicationContext ac;

    public static void main(String[] args) {
        // 使用 ac 作为 run 的返回值.
        ac = SpringApplication.run(ChessApplication.class, args);
    }

}
